﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Private_ContactChange, BtcHousing" stylesheettheme="ServerControls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Add Contact</h4>
    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>
    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--Contact Information Group Box Start--%>        
        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="General Information">Add Contact</asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define contact persons of your organization."></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:15%;" />
                        <col style="width:35%;" />                    
                        <col style="width:15%;" />                
                        <col style="width:35%;" />                                        
                    </colgroup>

				<tr>
					<td>Name<span class="requiredMark">*</span></td>
					<td>
						<asp:TextBox ID="txtName" MaxLength="150" runat="server"></asp:TextBox>
						<asp:RequiredFieldValidator ID="rfvName" runat="server"
							ControlToValidate="txtName" SetFocusOnError="true"
							ErrorMessage="Please Enter a Name." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
					</td>                    
					<td>Photo</td>
					<td>
						<asp:FileUpload ID="fuPhoto" runat="server" />
                        <asp:Image CssClass="ContactPhtoto" ID="imgPhoto" runat="server" Visible="false" />
					</td>
				</tr>
				<tr>
					<td>Designation<span class="requiredMark">*</span></td>
					<td>
						<asp:DropDownList ID="ddlDesignationID" runat="server"></asp:DropDownList>
						<asp:RequiredFieldValidator ID="rfvDesignationID" runat="server"
							ControlToValidate="ddlDesignationID" SetFocusOnError="true"
							ErrorMessage="Please Select a Designation." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:RequiredFieldValidator>
					</td>
					<td>Fax</td>
					<td>
						<asp:TextBox ID="txtFax" MaxLength="150" runat="server"></asp:TextBox>
					</td>
				</tr>
				<tr>
                    <td>Email</td>
					<td>
						<asp:TextBox ID="txtEmail" MaxLength="150" runat="server"></asp:TextBox>
                        <asp:CustomValidator ID="cvEmail" runat="server"
							ControlToValidate="txtEmail" SetFocusOnError="true"
                            OnServerValidate="cvEmail_ServerValidate"
							ErrorMessage="This Email is already taken. Please Choose another one." Display="Dynamic"
							ValidationGroup="SaveInfo">
						</asp:CustomValidator>
					</td>
                    <td>Branch</td>
					<td>
						<%--<asp:DropDownList ID="ddlBranchID" runat="server"></asp:DropDownList>--%>
                        <asp:TextBox ID="txtBranchName" MaxLength="150" runat="server"></asp:TextBox>
					</td>										
				</tr>
				<tr>
                    <td>Phone</td>
					<td>
						<asp:TextBox ID="txtPhone" MaxLength="150" runat="server"></asp:TextBox>
					</td>
					<td colspan="2"></td>
					
				</tr>								         
            </table>
        </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <asp:Button ID="btnList" runat="server" Text="Contact List" CssClass="ButtonInActive" OnClick="btnList_Click" />            
            </div>
        </div>
        <%--Contact Information Group Box End--%>
   </asp:Panel>
</asp:Content>

